/*
    SUSAN® - Sole of Unix Save ANything

   Copyright (C) 2018-2020 Hechzh Property

   
*/

#ifndef BAREOS_STORED_WAIT_H_
#define BAREOS_STORED_WAIT_H_

namespace storagedaemon {

//  return values for WaitForSysop()
enum
{
  W_ERROR = 1,
  W_TIMEOUT,
  W_POLL,
  W_MOUNT,
  W_WAKE
};

int WaitForSysop(DeviceControlRecord* dcr);
bool WaitForDevice(JobControlRecord* jcr, int& retries);
void ReleaseDeviceCond();

} /* namespace storagedaemon */

#endif  // BAREOS_STORED_WAIT_H_
